import request from '@/utils/request'

// 查询设备状态列表
export function listStatus2(query) {
  return request({
    url: '/system/status2/list',
    method: 'get',
    params: query
  })
}

// 查询设备状态详细
export function getStatus2(equipmentId) {
  return request({
    url: '/system/status2/' + equipmentId,
    method: 'get'
  })
}

// 新增设备状态
export function addStatus2(data) {
  return request({
    url: '/system/status2',
    method: 'post',
    data: data
  })
}

// 修改设备状态
export function updateStatus2(data) {
  return request({
    url: '/system/status2',
    method: 'put',
    data: data
  })
}

// 删除设备状态
export function delStatus2(equipmentId) {
  return request({
    url: '/system/status2/' + equipmentId,
    method: 'delete'
  })
}
